import request from '@/router/axios';

// 分页
export const getList = (current, size, params) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangerrectification/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 修改
export const update = (row) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangerrectification/update',
    method: 'post',
    data: row
  })
}

// 审核
export const examineDanger = (id, sftg, spyj) => {
  return request({
    url: '/api/hiddenDangeManage/hiddendangerrectification/check',
    method: 'post',
    data: {
      id,
      sftg,
      spyj
    }
  })
}